﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.SYS.ViewModel
{
    public class MessageModalVM
    {
        public int RegularMessageRead { get; set; }
        public int RegularMessageUnread { get; set; }
        public int RegularMessageUnwarn { get; set; }
        public List<Message> Messages { get; set; }

        public int TaskMessageRead { get; set; }
        public int TaskMessageUnread { get; set; }
        public int TaskMessageUnwarn { get; set; }
        public List<object> TaskMessages { get; set; }

        public int CountMessageUnread
        {
            get { return RegularMessageUnread + TaskMessageUnread; }
        }

        public int CountMessageUnwarn
        {
            get { return RegularMessageUnwarn + TaskMessageUnwarn; }
        }

        public int CountRegularMessage
        {
            get { return RegularMessageRead + RegularMessageUnread; }
        }

        public int CountTaskMessage
        {
            get { return TaskMessageRead + TaskMessageUnread; }
        }

        public int CountMessage
        {
            get { return CountRegularMessage + CountTaskMessage; }
        }
    }
}